package com.mvcplus.system.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 *
 * 用户-角色表
 *
 */
@TableName("SYS_USER_ROLE")
public class SysUserRole implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	@TableField(value = "U_ID")
	private Long userId;

	@TableId(value = "R_ID", type = IdType.AUTO)
	private Long roleId;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
}
